/*
 * @author: Spring
 * @create: 2021-06-18 15:49 PM
 * @license: MIT
 * @lastAuthor: Kate-sy
 * @lastEditTime: 2021-06-30 20:01 PM
 * @desc:
 */
import { get, post } from "./request";
//注册
export const register = (data) => post("/api/register", data);
//登录
export const login = (data) => post("/api/login", data);
//热点帖子
// export const hot = (data) => post("api/articleList", data);
export const hot = (data) => {
  console.log(data);
  return post("api/articleList", data);
};

//关注
export const attention = (data) => post("api/concern", data);
//评论列表
export const commentlist = (data) => post("api/articleInfo", data);
//添加评论和回复
export const addcomment = (data) => post("api/addComment", data);
//新增修改帖子
export const addModifyArticle = (data) => post("api/addModifyArticle", data);
//标签排行榜
export const tagRanking = (data) => post("/api/tagRanking", data);
//保存图片
export const savePic = (data) => post("api/savePic", data);
//路人信息
export const personInfo = (data) => post("api/personInfo", data);
//用户粉丝列表和我关注的用户列表
export const concernList = (data) => post("api/concernList", data);
//评论列表
export const articleInfo = (data) => post("/api/articleInfo", data);
//修改用户信息
export const userset = (data) => post("/api/userModify", data);
//修改密码
export const repassword = (data) => post("api/rePassword", data);
//取消关注
export const concerndel = (data) => post("api/concernDel", data);
